<template>
    <view class="bg-content">
        <div style="background-color: white; margin-bottom: 10px;">
            <div class="grid-title">商城中心</div>
            <u-grid :col="3">
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-community-lottery-winning-user/index`)">
                    <view class="grid-text">我的中奖记录</view>
                </u-grid-item>
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-dynamic/index?activeTabIndex=0`)">
                    <view class="grid-text">商城动态管理</view>
                </u-grid-item>
            </u-grid>
        </div>

        <div v-if="globalVariable.userInfo.tbCommunityAdmin" style="background-color: white; margin-bottom: 10px;">
            <div class="grid-title">商城管理</div>
            <u-grid :col="3">
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-community/index`)">
                    <view class="grid-text">我的商城</view>
                </u-grid-item>
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-home-config/index`)">
                    <view class="grid-text">设置首页</view>
                </u-grid-item>
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-admin/index`)">
                    <view class="grid-text">商城管理员</view>
                </u-grid-item>
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-admin-earnings/index`)">
                    <view class="grid-text">商城管理员收益</view>
                </u-grid-item>
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-dynamic-type/index`)">
                    <view class="grid-text">商城动态类型管理</view>
                </u-grid-item>
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-store/index`)">
                    <view class="grid-text">商城店铺</view>
                </u-grid-item>
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-member/index`)">
                    <view class="grid-text">商城成员</view>
                </u-grid-item>
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-faq/index`)">
                    <view class="grid-text">常见问题</view>
                </u-grid-item>
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-feedback/index`)">
                    <view class="grid-text">意见反馈</view>
                </u-grid-item>
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-brokerage-setting/index`)">
                    <view class="grid-text">佣金管理</view>
                </u-grid-item>
            </u-grid>
        </div>

        <div v-if="globalVariable.userInfo.tbCommunityAdmin" style="background-color: white; margin-bottom: 10px;">
            <div class="grid-title">公司模式</div>
            <u-grid :col="3">
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-community-user-type/index`)">
                    <view class="grid-text">商城客户类型</view>
                </u-grid-item>
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-community-user/index?type=1`)">
                    <view class="grid-text">商城客户列表</view>
                </u-grid-item>
                <u-grid-item @click="navigateTo(`/pages/sub/sub3-community-platform/community-platform/community-platform-community-user/index?type=0`)">
                    <view class="grid-text">商城业务员列表</view>
                </u-grid-item>
            </u-grid>
        </div>

        <div style="margin-top: 10px; margin-bottom: 10px;">
            <official-account style="width: 100%;"></official-account>
        </div>
    </view>
</template>

<script>

    export default {
        data() {
            return {}
        },
        onReady() {
            const _self = this

        },
        methods: {}
    }
</script>

<style lang="scss" scoped>
    .grid-title {
        padding: 10px;
        font-weight: bold;
        font-size: 16px;
        line-height: 2;
    }
</style>
